package com.exchange.interfaces.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.exchange.interfaces.mapper.ExchangeProcessMapper;
import com.exchange.interfaces.domain.ExchangeProcess;
import com.exchange.interfaces.service.IExchangeProcessService;
import com.exchange.common.core.text.Convert;

/**
 * 数据交换_待处理数据 服务层实现
 * 
 * @author exchange
 * @date 2019-06-03
 */
@Service
public class ExchangeProcessServiceImpl implements IExchangeProcessService 
{
	@Autowired
	private ExchangeProcessMapper exchangeProcessMapper;

	/**
     * 查询数据交换_待处理数据信息
     * 
     * @param id 数据交换_待处理数据ID
     * @return 数据交换_待处理数据信息
     */
    @Override
	public ExchangeProcess selectExchangeProcessById(Long id)
	{
	    return exchangeProcessMapper.selectExchangeProcessById(id);
	}
	
	/**
     * 查询数据交换_待处理数据列表
     * 
     * @param exchangeProcess 数据交换_待处理数据信息
     * @return 数据交换_待处理数据集合
     */
	@Override
	public List<ExchangeProcess> selectExchangeProcessList(ExchangeProcess exchangeProcess)
	{
	    return exchangeProcessMapper.selectExchangeProcessList(exchangeProcess);
	}
	
    /**
     * 新增数据交换_待处理数据
     * 
     * @param exchangeProcess 数据交换_待处理数据信息
     * @return 结果
     */
	@Override
	public int insertExchangeProcess(ExchangeProcess exchangeProcess)
	{
	    return exchangeProcessMapper.insertExchangeProcess(exchangeProcess);
	}
	
	/**
     * 修改数据交换_待处理数据
     * 
     * @param exchangeProcess 数据交换_待处理数据信息
     * @return 结果
     */
	@Override
	public int updateExchangeProcess(ExchangeProcess exchangeProcess)
	{
	    return exchangeProcessMapper.updateExchangeProcess(exchangeProcess);
	}

	/**
     * 删除数据交换_待处理数据对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteExchangeProcessByIds(String ids)
	{
		return exchangeProcessMapper.deleteExchangeProcessByIds(Convert.toStrArray(ids));
	}
	
}
